<script>
//局部引入mixin
// import {mixin} from '../mixin'
export default{
  name: "Student",
  data(){
    return {
      name:'曾宇杰',
      age:18,
      address:'广东梅州'
    }
  },
  //局部使用mixin
  // mixins: [mixin],
}
</script>

<template>
  <div class="demo">
    <h2>我的叫{{name}}</h2>
    <h2>今年 {{age}}</h2>
    <h2>我家住在{{address}}</h2>
  </div>
</template>

<style scoped>
  .demo{
    background-color: gray;
  }
</style>